﻿using HamcoWcs.Models.Common;

namespace HamcoWcs.Models.DbInfos
{
    public class DbInfoDto
    {
        public string DbName { get; set; }
        public int DbNum { get; set; }
        public int StartPoint { get; set; }
        public int DbLength { get; set; }
        public byte[] Buffer { get; set; }

        public int GetRequestOffset(int startPoint)
        => startPoint + GlobalValue.CV_RECV_MSG_SIZE - 2;
    }
}
